﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace MusicPlow
{
    [DataContract]
    public class SearchResults
    {
        [DataMember(Name = "results")]
        public List<SearchResult> Results;

        [DataMember(Name = "searchterm")]
        public string SearchTerm;

        [DataMember(Name = "durationinms")]
        public double DurationInMS;

        [DataMember(Name = "statistics")]
        public RequestStatistics Statistics;
    }

    [DataContract]
    public class SearchResult
    {
        [DataMember(Name = "songname")]
        public string SongName;

        [DataMember(Name = "artistname")]
        public string ArtistName;

        [DataMember(Name = "albumname")]
        public string AlbumName;

        [DataMember(Name = "gssongid")]
        public int GrooveSharkSongId;

        [DataMember(Name = "youtubelink")]
        public string YoutubeLink;

        [DataMember(Name = "imagehref")]
        public string ImageHref;

        [DataMember(Name = "amazonlink")]
        public string AmazonLink;

        [DataMember(Name = "ituneslink")]
        public string ITunesLink;

        public SingleResultStatistic ResultStatistics;
    }
}